<?php

require_once 'fonction.php';
                if (isset($_SESSION['mail']))
                                {
                //On demarre les sessions
                echo '';
                                }else{
                                 //On demarre les sessions
                                 session_start();
                                     }
                                     
                


                //$dsn="mysql:host=172.16.102.30;dbname=suivistage1";
		//$user="manager";
		//$mdp="manager";

		$dsn="mysql:host=127.0.0.1;dbname=suivistage";
		$user="root";
		$mdp="";


		try
		{
			$connexion=new PDO($dsn,$user,$mdp);
			$connexion->exec("SET CHARACTER SET utf8");
			//echo 'Connexion Reussit'; 
		}
		catch(PDOException $e)
		{

			die ($dsn."erreur : ".$e->getMessage());

		}
					   
?>